<%@ page language="java"
	import="java.util.*,java.sql.*,org.jbit.news.entity.*"
	pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
			<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
				<meta http-equiv="description" content="This is my page">
					<title>添加主题--管理后台</title>
					<link href="../css/admin.css" rel="stylesheet" type="text/css" />
	
</head>
<body>

	<div id="header">
		<div id="welcome">欢迎使用新闻管理系统！</div>
		<div id="nav">
			<div id="logo">
				<img src="../images/logo.jpg" alt="新闻中国" />
			</div>
			<div id="a_b01">
				<img src="../images/a_b01.gif" alt="" />
			</div>
		</div>
	</div>
	<div id="admin_bar">
		<div id="status">
			管理员：${session.getAttribute("loginUser")} 登录 &#160;&#160;&#160;&#160;
			<a href="loginOut.jsp">login out</a>
		</div>
		<div id="channel"></div>
	</div>
	<div id="main">
		<%@include file="console_element/left.html"%>
		<div id="msg" >
		</div>
		<div id="opt_area">
			
			
		 <!-- <ul class="classlist">   -->
				<%-- <c:forEach var="tempNew" items="${sessionscope.list }" varStatus="i">
				<li>${tempNew.getNtitle()}<span> 作者：${tempNew.getNauthor()}
						&#160;&#160;&#160;&#160; <a
						href='../util/NewsUpdateServlet?nid=${tempNew.getNid()}'>修改</a>
						&#160;&#160;&#160;&#160; <a
						href='../util/NewsDelServlet?nid=${tempNew.getNid()}'
						onclick='return clickdel()'>删除</a>
				</span></li>
				<c:if test="${i.count%5==0 }">
				<li class='space'></li>
				</c:if>
			<c:remove var="list" scope="session" />
			</c:forEach> --%>
				<%-- <%
					List<News> list = (List<News>) session.getAttribute("list");
					if (list == null) {
						response.sendRedirect(request.getContextPath()+"/util/do_news_list.jsp");
						return;
					} else {
						session.removeAttribute("list");
						int n = 0;
						for (News tempNew : list) {
							n++;
				%> 
				<li><%=tempNew.getNtitle()%><span> 作者：<%=tempNew.getNauthor()%>
						&#160;&#160;&#160;&#160; <a
						href='../util/NewsUpdateServlet?nid=<%=tempNew.getNid()%>'>修改</a>
						&#160;&#160;&#160;&#160; <a
						href='../util/NewsDelServlet?nid=<%=tempNew.getNid()%>'
						onclick='return clickdel()'>删除</a>
				</span></li>
			<%
					if (n % 5 == 0) {
				%>
				<li class='space'></li>
				<%
					}
						} 
					}
				%>  --%>
		 	<!-- </ul>  -->
		</div>
	</div>
	<div id="footer">
		<%@include file="console_element/bottom.html"%>
	</div>
	<script type="text/javascript" src="../js/jquery-1.12.4.js"></script>
	<script language="javascript" type="text/javascript">
				function clickdel() {
					return confirm("删除请点击确认");
				}
				
			</script>
			<script type="text/javascript" src="../js/topiclist.js"></script>
		
</body>
</html>
  